﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebSearcher
{
    public partial class Login : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (this.IsPostBack)
            {
                string username = this.txtUsername.Text.Trim();
                string password = this.txtPassword.Text.Trim();

                if (string.Compare(username, "admin", true) == 0 &&
                    string.Compare(password, "1", true) == 0)
                {
                    Response.Redirect("Admin.aspx");
                }
            }
        }
    }
}
